class Text:
  def __init__(self):
    self.d = {
      'apperror' : 'Application error',
      'finished' : 'Files copied successfully.',
      'appclose' : 'This application will now close',
      'menu_file' : 'File',
      'menu_file_fromdir' : 'Select picture folder (fromdir)',
      'menu_file_todir'   : 'Select target folder (todir)',
      'menu_file_config'  : 'Edit configuration',
      'menu_file_exit' : 'Exit',
      'menu_about' : 'About...',
      'label_copyfrom' : 'Copy files from:',
      'label_copyto'   : 'To:',
      'label_status'   : 'Status:',
      'button_start'   : 'Start',
      'button_stop'    : 'Cancel',
      'status_idle'    : 'Idle',
      'status_done'    : 'Done',
      'status_found'   : 'Found',
      'status_files'   : 'files',
      'status_copying' : 'Copying files...',
      'status_rotating' : 'Rotating files...'
      }
    
  def __getitem__(self, name):
    if name != None:
      try:
        retval = self.d[name]
      except:
        retval = 'i18n ERROR (%s)' % name
      return retval

    
